package com.boco.modules.fdoc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.boco.common.json.BaseJsonVo;
import com.boco.modules.fdoc.dao.HospitalDao;
import com.boco.modules.fdoc.model.HospitalEntity;
import com.boco.modules.fdoc.service.HospitalService;
import com.boco.modules.fdoc.vo.HospitalVo;
import com.boco.modules.fdoc.vo.QuickBookingVo;

@Service
public class HospitalServiceImpl implements HospitalService{
	
	@Resource
	HospitalDao hospitalDao;
	
	@Override
	public List<HospitalEntity> getHospitalList(HospitalEntity hospital) {
		return hospitalDao.findList(hospital);
	}

	@Override
	public HospitalEntity getHospitalDetail(int id) {
		return hospitalDao.get(id);
	}

	@Override
	public HospitalVo getHospitalByName(String name) {
		HospitalVo vo = new HospitalVo();
		vo.setList(hospitalDao.getByEntity(name));
		return vo;
	}

	@Override
	public List<HospitalEntity> getBookingHospList(QuickBookingVo vo) {
		return hospitalDao.getBookingHospList(vo);
	}
	
}
